import service from "../index";

export const userLogin = async (params: any) => {
  return await service({
    method: "post",
    url: "/login/userLogin",
    data: params,
  });
};

export const phoneLogin = async (params: any) => {
  return await service({
    method: "post",
    url: "/login/phoneLogin",
    data: params,
  });
};

export const emailLogin = async (params: any) => {
  return await service({
    method: "post",
    url: "/login/emailLogin",
    data: params,
  });
};

export const register = async (params: any) => {
  return await service({
    method: "post",
    url: "/login/register",
    data: params,
  });
};
